// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import TreeTable from "vue-table-with-tree-grid";
import NProgress from "nprogress";
Vue.config.productionTip = false;
// 全局引入样式
import "./styles/index.scss";
import store from "./store/index";
Vue.use(ElementUI);
/* eslint-disable no-new */
// 全局注册树表格组件
Vue.component("tree-table", TreeTable);
// 引入echarts
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
